package com.ktjiaoyu.springboothelloworld.config;

import com.ktjiaoyu.springboothelloworld.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration //beans
public class SpringConfig {

    @Bean //bean
    public User user() {
        User user = new User();
        user.setUsername("王五");
        user.setAge(20);

        return user;
    }
}
